//
//  SCWorkoutDataBlock.h
//  FirstSCAnalyzer
//
//  Created by Roelant Ossewaarde on 8/28/09.
//  Copyright 2009 SUNY Buffalo. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <Chunk.h>

enum IntervalType {
	DistanceIntervalType,
	TimeIntervalType,
	StrokeIntervalType,
	UnknownIntervalType
};

enum UnitType {
	MSecUnitType,
	MphUnitType,
	KtsUnitType
};

typedef enum IntervalType IntervalType;
typedef enum UnitType UnitType;

@interface SCWorkoutDataBlock : NSObject {
	int time;
	int distance;
	int averageStrokeRate;
	int numberOfStrokes;
	int heartRate;
	NSDate *date;
	IntervalType intervalType;
	UnitType unitType;
	NSString *label;
	int sequenceno;
	NSString *csvSeparator;
	NSString *csvParen;
}

@property (assign) int time;
@property (assign) int distance;
@property (assign) int averageStrokeRate;
@property (assign) int numberOfStrokes;
@property (assign) int heartRate;
@property (assign) IntervalType intervalType;
@property (assign) UnitType unitType;
@property (retain) NSDate *date;
@property (retain) NSString *label;
@property (retain) NSString *csvSeparator;
@property (retain) NSString *csvParen;
@property (assign) int sequenceno;

-(id) init;
-(id) initWithLabel:(NSString *)label;
-(void) logDump;
-(NSString *) csvHeader;
-(NSString *) toCSV;
@end
